body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.text-small {
  font-size: 85%;
}

.cmd-icon {
  font-size: 24px;
}

.dropdown-toggle {
  outline: 0;
}

.btn-icon {
    display: block;
    padding: .5em;
    line-height: 1;
    color: var(--bs-body-color);
    background-color: var(--bs-tertiary-bg);
    border: 0;
    border-radius: .25rem
}

.btn-icon:hover {
    color: var(--bs-link-color)
}

.btn-icon:focus {
    z-index: 3
}

.btn-refresh {
    --bs-btn-refresh-color: #000;
    --bs-btn-refresh-opacity: 0.5;
    --bs-btn-refresh-hover-opacity: 0.75;
    --bs-btn-refresh-focus-opacity: 1;
    --bs-btn-refresh-disabled-opacity: 0.25;
    --bs-btn-refresh-white-filter: invert(1) grayscale(100%) brightness(200%);
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--bs-btn-refresh-color);
    background: transparent var(--bs-btn-refresh-bg) center/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: var(--bs-btn-refresh-opacity);
    font-size: 20px;
}

.btn-refresh:hover {
    color: var(--bs-btn-refresh-color);
    text-decoration: none;
    opacity: var(--bs-btn-refresh-hover-opacity)
}

.btn-refresh:focus {
    outline: 0;
    box-shadow: var(--bs-btn-refresh-focus-shadow);
    opacity: var(--bs-btn-refresh-focus-opacity)
}

#programListPanel {
  position: fixed;
  z-index: 100;
  width: 380px;
  height: 100%;
  left: -380px;
  transition: left 0.5s ease-in-out .1s;
}

#outputPanel {
  position: fixed;
  z-index: 100;
  width: 50%;
  height: -webkit-fill-available;
  right: -50%;
  transition: right 0.5s ease-in-out .1s;
}

.form-control-dark {
  border-color: var(--bs-gray);
}

.form-control-dark:focus {
  border-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .25);
}

.dropdown-toggle { outline: 0; }

.btn-toggle {
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  max-width: 200px;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.contents {
    display: block;
    position: absolute;
    height: -webkit-fill-available;
    width: 100%;
    padding: 10px; /* 更多间距 */
}

.code-editor {
    width: 100%;
    height:100%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff; /* 白色背景 */
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* 阴影 */
    overflow-y:scroll;
}

/* codemirror 样式 */
.CodeMirror {
    height: 100% !important;
    font-size: 17px;
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* 阴影 */
    background-color: #ffffff; /* 白色背景 */
}

.CodeMirror-hints {
    border: 1px solid #ccc;
    background: #ffffff;
    font-size: 24px; /* 更大的字体 */
    font-family: 'Poppins', sans-serif; /* 使用更现代的字体 */
    max-height: 20em;
    overflow-y: auto;
    position: absolute;
    z-index: 10;
    list-style-type: disc; /* 无序列表 */
    padding-left: 2em; /* 项目符号间距 */
    border-radius: 15px; /* 圆角 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* 阴影 */
}

.CodeMirror-hint {
    margin: 0;
    padding: 0.4em 0.8em;
    white-space: pre;
    color: #333;
    cursor: pointer;
    list-style-position: outside; /* 项目符号位置 */
}

.CodeMirror-hint-active {
    background: #bb86fc; /* 浅紫色 */
    color: white;
    border-radius: 10px; /* 圆角 */
}

/* 拍手样式 */
/* 弹窗样式 */
.clapping-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 105;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
}

.clapping-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

